<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" type="text/css" href="/static/style.css" />

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
        integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous" />

    <title>注册</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
            height: 100%;
        }

        .login {
            width: 358px;
            height: 588px;
            border-radius: 15px;
            padding: 0 50px;
            position: relative;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background-color: #282c34;
        }

        .header {
            font-size: 38px;
            font-weight: bold;
            text-align: center;
            line-height: 200px;
            color: #61dafb;
        }

        .container {
            height: 30px;
            width: 250px;
            position: absolute;
            left: 50%;
            top: 40%;
            transform: translate(-50%, -50%);
        }

        input {
            width: 100%;
            height: 100%;
            position: relative;
            outline: none;
            border: none;
            box-sizing: border-box;
            padding-left: 5px;
            background-color: #282c34;
            color: #61dafb;
            caret-color: #61dafb;
        }

        input::placeholder {
            color: #61dafb;
        }

        span {
            position: absolute;
            content: "";
            display: block;
            background-color: #61dafb;
            transition: transform 0.1s ease-in-out;
        }

        .top,
        .bottom {
            left: 0px;
            right: 0px;
            height: 2px;
        }

        .left,
        .right {
            top: 0px;
            bottom: 0px;
            width: 2px;
            transform: scaleY(0);
        }

        .top {
            top: 0px;
            transform: scaleX(0);
            transform-origin: left center;
            transition-delay: 0.2s;
        }

        .left {
            left: 0px;
            transform-origin: bottom center;
            transition-delay: 0.3s;
        }

        .bottom {
            bottom: 0px;
        }

        .right {
            right: 0px;
            transform-origin: top center;
            transition-delay: 0.1s;
        }

        input:focus~.right {
            transform: scaleY(1);
            transform-origin: bottom center;
        }

        input:focus~.left {
            transform: scaleY(1);
            transform-origin: top center;
        }

        input:focus~.top {
            transform: scaleY(1);
            transform-origin: right center;
        }

        .container1 {
            height: 30px;
            width: 250px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .btn {
            position: absolute;
            left: 50%;
            top: 54%;
            transform: translate(-50%, -50%);
            text-align: center;
            padding: 5px;
            width: 52%;
            margin-top: 40px;
            background-color: #61dafb;
            color: #fff;
        }
    </style>

    <style>
        body {
            /*大主背景图*/
            background-image: url(../static/images/backgrounds/3.jpg);
            background-size: cover;
            background-position-x: center;
        }

        .layout {
            /*设置登录窗口部分的样式*/
            width: 900px;
            height: 530px;
            position: relative;
            box-sizing: border-box;
            margin-left: 500px;
            margin-top: 190px;
            padding: 1px;
            border: 8px solid silver;
            border-radius: 2px;
            background-image: url(../static/images/backgrounds/3.jpg);
            background-size: 1300px;
            background-position-x: center;
            background-position-y: -125px;
            z-index: 1;
        }

        .layout::after {
            /*设置背景虚图层*/
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: inherit;
            left: 0;
            top: 0;
            filter: blur(5px);
            z-index: 2;
        }

        .input {
            /*登录条框布局*/
            margin-top: 160px;
            margin-left: 250px;
            margin-right: 250px;
        }

        .input-group {
            /*调节账号和密码框图层*/
            position: relative;
            z-index: 3;
        }

        .input-group {
            /*调节两个输入框的之间距离*/
            padding: 15px;
        }

        button {
            /*设置登录按钮的图层分布和位置*/
            position: relative;
            z-index: 3;
            margin-top: 15px;
            margin-left: 120px;
        }

        .submit-default {
            /*设置登录按钮边界弧度*/
            border-radius: 5px;
        }

        .bz {
            /*火焰图标*/
            position: absolute;
            z-index: 3;
            font-size: 40px;
            margin-left: 405px;
            margin-top: 89px;
        }

        #注册 {
            /*注册超链接的设置*/
            margin: 0px auto;
            position: absolute;
            z-index: 3;
            color: #222222;
            margin-top: 15px;
            margin-left: 725px;
        }
    </style>
    <style>
        body {
            background-image: url(../static/images/backgrounds/3.jpg);
        }
    </style>
</head>

<body>
    <div>
        <h1 align="center">用户注册</h1>
        <form method="POST" action="http://localhost:3000/regiser">
            <!-- <input type="text" name="username" placeholder="请输入用户名" /> -->

            <input type="text" name="username" class="form-control" id="username" placeholder="请输入用户名"
                aria-describedby="basic-addon1" />
            <br />
            <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码（小于12位）"
                aria-describedby="basic-addon1" />
            <br />
            <!--jinja2的函数-->
            <h2>{% if message %} {{message}} {% endif %}</h2>
            <br />
            <div class="container1">
                <input type="submit" value="注册" />
            </div>
            <div>
                <a href="{{ url_for('user_login') }}">
                    <h2 align="center">直接登录</h2>
                </a>
            </div>
        </form>
    </div>
</body>

</html>